<?php

namespace common\logics\trade;

use Yii;
use yii\helpers\VarDumper;
use yii\helpers\Inflector;

/**
 * BasePaymentModel is the model behind the payment form.
 * @author emhome
 * @since 2.0
 */
class BasePaymentModel extends \yii\base\Model {

    /**
     * 记录处理日志
     */
    public static function invokeLog($prefix, $content) {
        $message = Inflector::id2camel($prefix) . ":";
        $message .= "\n" . VarDumper::export($content);
        Yii::info("\n" . $message, 'payment');
    }

}
